package com.kaiwukj.android.ufamily;

import androidx.test.ext.junit.runners.AndroidJUnit4;

import com.kaiwukj.android.ufamily.utils.AESEncrypt;

import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(AndroidJUnit4.class)
public class CommentTest {


    @Test
    public void testBase64() {

        String data = "123456";
        String key = "thanks,pig4cloud";
        String transform = "AES/CBC/NoPadding";
        System.out.println("---------------->" + AESEncrypt.encrypt("123456"));
        //System.out.println("pass---------------->" + new String(Base64.encode(EncryptUtils.encryptAES(data.getBytes(), key.getBytes(), transform, key.getBytes()), Base64.DEFAULT)));
    }
}
